package stylistcrm.core.services.order.enums;

public enum EnumInvoiceOrderType {

	PURCHASE_INVOICE_ORDER("0","进货单对应的发货单"),
	TRANSFER_INVOICE_ORDER("1","调货单对应的发货单")
	;
	
	private String code;
	
	private String desc;
	
	private EnumInvoiceOrderType(String code, String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public String getCode(){
		return code;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public static EnumInvoiceOrderType getEnum(String code) {

        for (EnumInvoiceOrderType enumValue : EnumInvoiceOrderType.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
